package ex2;

public class Executive extends Employee {
	private double bonus;
	
	public Executive() {
		super();
		this.bonus = 0;
	}
	
	public Executive(String name, String address, String phone, String socialSecurityNumber, double payRate, double bonus) {
		super(name, address, phone, socialSecurityNumber, payRate);
		this.bonus = bonus;
	}
	public void awardBonus (double execBonus) {
		this.bonus += execBonus;
	}
	
	public double pay() {
		return (50*this.payRate + this.bonus);
	}
	public double getBonus() {
		return this.bonus;
	}

	public void setBonus(double bonus) {
		this.bonus = bonus;
	}
	
}
